package com.gitee.wsl.theme


class CssTheme {
    companion object{
        val cssColorMap :Map<String,Long> by lazy {
            mapOf(
                "aliceblue" to 0xfff0f8ff,
                "antiquewhite" to 0xfffaebd7,
                "aqua" to 0xff00ffff,
                "aquamarine" to 0xff7fffd4,
                "azure" to 0xfff0ffff,
                "beige" to 0xfff5f5dc,
                "bisque" to 0xffffe4c4,
                "black" to 0xff000000,
                "blanchedalmond" to 0xffffebcd,
                "blue" to 0xff0000ff,
                "blueviolet" to 0xff8a2be2,
                "brown" to 0xffa52a2a,
                "burlywood" to 0xffdeb887,
                "cadetblue" to 0xff5f9ea0,
                "chartreuse" to 0xff7fff00,
                "chocolate" to 0xffd2691e,
                "coral" to 0xffff7f50,
                "cornflowerblue" to 0xff6495ed,
                "cornsilk" to 0xfffff8dc,
                "crimson" to 0xffdc143c,
                "cyan" to 0xff00ffff,
                "darkblue" to 0xff00008b,
                "darkcyan" to 0xff008b8b,
                "darkgoldenrod" to 0xffb8860b,
                "darkgray" to 0xffa9a9a9,
                "darkgreen" to 0xff006400,
                "darkgrey" to 0xffa9a9a9,
                "darkkhaki" to 0xffbdb76b,
                "darkmagenta" to 0xff8b008b,
                "darkolivegreen" to 0xff556b2f,
                "darkorange" to 0xffff8c00,
                "darkorchid" to 0xff9932cc,
                "darkred" to 0xff8b0000,
                "darksalmon" to 0xffe9967a,
                "darkseagreen" to 0xff8fbc8f,
                "darkslateblue" to 0xff483d8b,
                "darkslategray" to 0xff2f4f4f,
                "darkslategrey" to 0xff2f4f4f,
                "darkturquoise" to 0xff00ced1,
                "darkviolet" to 0xff9400d3,
                "deeppink" to 0xffff1493,
                "deepskyblue" to 0xff00bfff,
                "dimgray" to 0xff696969,
                "dimgrey" to 0xff696969,
                "dodgerblue" to 0xff1e90ff,
                "firebrick" to 0xffb22222,
                "floralwhite" to 0xfffffaf0,
                "forestgreen" to 0xff228b22,
                "fuchsia" to 0xffff00ff,
                "gainsboro" to 0xffdcdcdc,
                "ghostwhite" to 0xfff8f8ff,
                "gold" to 0xffffd700,
                "goldenrod" to 0xffdaa520,
                "gray" to 0xff808080,
                "green" to 0xff008000,
                "greenyellow" to 0xffadff2f,
                "grey" to 0xff808080,
                "honeydew" to 0xfff0fff0,
                "hotpink" to 0xffff69b4,
                "indianred" to 0xffcd5c5c,
                "indigo" to 0xff4b0082,
                "ivory" to 0xfffffff0,
                "khaki" to 0xfff0e68c,
                "lavender" to 0xffe6e6fa,
                "lavenderblush" to 0xfffff0f5,
                "lawngreen" to 0xff7cfc00,
                "lemonchiffon" to 0xfffffacd,
                "lightblue" to 0xffadd8e6,
                "lightcoral" to 0xfff08080,
                "lightcyan" to 0xffe0ffff,
                "lightgoldenrodyellow" to 0xfffafad2,
                "lightgray" to 0xffd3d3d3,
                "lightgreen" to 0xff90ee90,
                "lightgrey" to 0xffd3d3d3,
                "lightpink" to 0xffffb6c1,
                "lightsalmon" to 0xffffa07a,
                "lightseagreen" to 0xff20b2aa,
                "lightskyblue" to 0xff87cefa,
                "lightslategray" to 0xff778899,
                "lightslategrey" to 0xff778899,
                "lightsteelblue" to 0xffb0c4de,
                "lightyellow" to 0xffffffe0,
                "lime" to 0xff00ff00,
                "limegreen" to 0xff32cd32,
                "linen" to 0xfffaf0e6,
                "magenta" to 0xffff00ff,
                "maroon" to 0xff800000,
                "mediumaquamarine" to 0xff66cdaa,
                "mediumblue" to 0xff0000cd,
                "mediumorchid" to 0xffba55d3,
                "mediumpurple" to 0xff9370db,
                "mediumseagreen" to 0xff3cb371,
                "mediumslateblue" to 0xff7b68ee,
                "mediumspringgreen" to 0xff00fa9a,
                "mediumturquoise" to 0xff48d1cc,
                "mediumvioletred" to 0xffc71585,
                "midnightblue" to 0xff191970,
                "mintcream" to 0xfff5fffa,
                "mistyrose" to 0xffffe4e1,
                "moccasin" to 0xffffe4b5,
                "navajowhite" to 0xffffdead,
                "navy" to 0xff000080,
                "oldlace" to 0xfffdf5e6,
                "olive" to 0xff808000,
                "olivedrab" to 0xff6b8e23,
                "orange" to 0xffffa500,
                "orangered" to 0xffff4500,
                "orchid" to 0xffda70d6,
                "palegoldenrod" to 0xffeee8aa,
                "palegreen" to 0xff98fb98,
                "paleturquoise" to 0xffafeeee,
                "palevioletred" to 0xffdb7093,
                "papayawhip" to 0xffffefd5,
                "peachpuff" to 0xffffdab9,
                "peru" to 0xffcd853f,
                "pink" to 0xffffc0cb,
                "plum" to 0xffdda0dd,
                "powderblue" to 0xffb0e0e6,
                "purple" to 0xff800080,
                "rebeccapurple" to 0xff663399,
                "red" to 0xffff0000,
                "rosybrown" to 0xffbc8f8f,
                "royalblue" to 0xff4169e1,
                "saddlebrown" to 0xff8b4513,
                "salmon" to 0xfffa8072,
                "sandybrown" to 0xfff4a460,
                "seagreen" to 0xff2e8b57,
                "seashell" to 0xfffff5ee,
                "sienna" to 0xffa0522d,
                "silver" to 0xffc0c0c0,
                "skyblue" to 0xff87ceeb,
                "slateblue" to 0xff6a5acd,
                "slategray" to 0xff708090,
                "slategrey" to 0xff708090,
                "snow" to 0xfffffafa,
                "springgreen" to 0xff00ff7f,
                "steelblue" to 0xff4682b4,
                "tan" to 0xffd2b48c,
                "teal" to 0xff008080,
                "thistle" to 0xffd8bfd8,
                "tomato" to 0xffff6347,
                "turquoise" to 0xff40e0d0,
                "violet" to 0xffee82ee,
                "wheat" to 0xfff5deb3,
                "white" to 0xffffffff,
                "whitesmoke" to 0xfff5f5f5,
                "yellow" to 0xffffff00,
                "yellowgreen" to 0xff9acd32
            )
        }
            /*val cssColorMap :Map<String,Long> by lazy { mapOf(
                "aliceblue" to ColorCalc(240, 248, 255),
                "antiquewhite" to ColorCalc(250, 235, 215),
                "aqua" to ColorCalc(0, 255, 255),
                "aquamarine" to ColorCalc(127, 255, 212),
                "azure" to ColorCalc(240, 255, 255),
                "beige" to ColorCalc(245, 245, 220),
                "bisque" to ColorCalc(255, 228, 196),
                "black" to ColorCalc(0, 0, 0),
                "blanchedalmond" to ColorCalc(255, 235, 205),
                "blue" to ColorCalc(0, 0, 255),
                "blueviolet" to ColorCalc(138, 43, 226),
                "brown" to ColorCalc(165, 42, 42),
                "burlywood" to ColorCalc(222, 184, 135),
                "cadetblue" to ColorCalc(95, 158, 160),
                "chartreuse" to ColorCalc(127, 255, 0),
                "chocolate" to ColorCalc(210, 105, 30),
                "coral" to ColorCalc(255, 127, 80),
                "cornflowerblue" to ColorCalc(100, 149, 237),
                "cornsilk" to ColorCalc(255, 248, 220),
                "crimson" to ColorCalc(220, 20, 60),
                "cyan" to ColorCalc(0, 255, 255),
                "darkblue" to ColorCalc(0, 0, 139),
                "darkcyan" to ColorCalc(0, 139, 139),
                "darkgoldenrod" to ColorCalc(184, 134, 11),
                "darkgray" to ColorCalc(169, 169, 169),
                "darkgreen" to ColorCalc(0, 100, 0),
                "darkgrey" to ColorCalc(169, 169, 169),
                "darkkhaki" to ColorCalc(189, 183, 107),
                "darkmagenta" to ColorCalc(139, 0, 139),
                "darkolivegreen" to ColorCalc(85, 107, 47),
                "darkorange" to ColorCalc(255, 140, 0),
                "darkorchid" to ColorCalc(153, 50, 204),
                "darkred" to ColorCalc(139, 0, 0),
                "darksalmon" to ColorCalc(233, 150, 122),
                "darkseagreen" to ColorCalc(143, 188, 143),
                "darkslateblue" to ColorCalc(72, 61, 139),
                "darkslategray" to ColorCalc(47, 79, 79),
                "darkslategrey" to ColorCalc(47, 79, 79),
                "darkturquoise" to ColorCalc(0, 206, 209),
                "darkviolet" to ColorCalc(148, 0, 211),
                "deeppink" to ColorCalc(255, 20, 147),
                "deepskyblue" to ColorCalc(0, 191, 255),
                "dimgray" to ColorCalc(105, 105, 105),
                "dimgrey" to ColorCalc(105, 105, 105),
                "dodgerblue" to ColorCalc(30, 144, 255),
                "firebrick" to ColorCalc(178, 34, 34),
                "floralwhite" to ColorCalc(255, 250, 240),
                "forestgreen" to ColorCalc(34, 139, 34),
                "fuchsia" to ColorCalc(255, 0, 255),
                "gainsboro" to ColorCalc(220, 220, 220),
                "ghostwhite" to ColorCalc(248, 248, 255),
                "gold" to ColorCalc(255, 215, 0),
                "goldenrod" to ColorCalc(218, 165, 32),
                "gray" to ColorCalc(128, 128, 128),
                "green" to ColorCalc(0, 128, 0),
                "greenyellow" to ColorCalc(173, 255, 47),
                "grey" to ColorCalc(128, 128, 128),
                "honeydew" to ColorCalc(240, 255, 240),
                "hotpink" to ColorCalc(255, 105, 180),
                "indianred" to ColorCalc(205, 92, 92),
                "indigo" to ColorCalc(75, 0, 130),
                "ivory" to ColorCalc(255, 255, 240),
                "khaki" to ColorCalc(240, 230, 140),
                "lavender" to ColorCalc(230, 230, 250),
                "lavenderblush" to ColorCalc(255, 240, 245),
                "lawngreen" to ColorCalc(124, 252, 0),
                "lemonchiffon" to ColorCalc(255, 250, 205),
                "lightblue" to ColorCalc(173, 216, 230),
                "lightcoral" to ColorCalc(240, 128, 128),
                "lightcyan" to ColorCalc(224, 255, 255),
                "lightgoldenrodyellow" to ColorCalc(250, 250, 210),
                "lightgray" to ColorCalc(211, 211, 211),
                "lightgreen" to ColorCalc(144, 238, 144),
                "lightgrey" to ColorCalc(211, 211, 211),
                "lightpink" to ColorCalc(255, 182, 193),
                "lightsalmon" to ColorCalc(255, 160, 122),
                "lightseagreen" to ColorCalc(32, 178, 170),
                "lightskyblue" to ColorCalc(135, 206, 250),
                "lightslategray" to ColorCalc(119, 136, 153),
                "lightslategrey" to ColorCalc(119, 136, 153),
                "lightsteelblue" to ColorCalc(176, 196, 222),
                "lightyellow" to ColorCalc(255, 255, 224),
                "lime" to ColorCalc(0, 255, 0),
                "limegreen" to ColorCalc(50, 205, 50),
                "linen" to ColorCalc(250, 240, 230),
                "magenta" to ColorCalc(255, 0, 255),
                "maroon" to ColorCalc(128, 0, 0),
                "mediumaquamarine" to ColorCalc(102, 205, 170),
                "mediumblue" to ColorCalc(0, 0, 205),
                "mediumorchid" to ColorCalc(186, 85, 211),
                "mediumpurple" to ColorCalc(147, 112, 219),
                "mediumseagreen" to ColorCalc(60, 179, 113),
                "mediumslateblue" to ColorCalc(123, 104, 238),
                "mediumspringgreen" to ColorCalc(0, 250, 154),
                "mediumturquoise" to ColorCalc(72, 209, 204),
                "mediumvioletred" to ColorCalc(199, 21, 133),
                "midnightblue" to ColorCalc(25, 25, 112),
                "mintcream" to ColorCalc(245, 255, 250),
                "mistyrose" to ColorCalc(255, 228, 225),
                "moccasin" to ColorCalc(255, 228, 181),
                "navajowhite" to ColorCalc(255, 222, 173),
                "navy" to ColorCalc(0, 0, 128),
                "oldlace" to ColorCalc(253, 245, 230),
                "olive" to ColorCalc(128, 128, 0),
                "olivedrab" to ColorCalc(107, 142, 35),
                "orange" to ColorCalc(255, 165, 0),
                "orangered" to ColorCalc(255, 69, 0),
                "orchid" to ColorCalc(218, 112, 214),
                "palegoldenrod" to ColorCalc(238, 232, 170),
                "palegreen" to ColorCalc(152, 251, 152),
                "paleturquoise" to ColorCalc(175, 238, 238),
                "palevioletred" to ColorCalc(219, 112, 147),
                "papayawhip" to ColorCalc(255, 239, 213),
                "peachpuff" to ColorCalc(255, 218, 185),
                "peru" to ColorCalc(205, 133, 63),
                "pink" to ColorCalc(255, 192, 203),
                "plum" to ColorCalc(221, 160, 221),
                "powderblue" to ColorCalc(176, 224, 230),
                "purple" to ColorCalc(128, 0, 128),
                "rebeccapurple" to ColorCalc(102, 51, 153),
                "red" to ColorCalc(255, 0, 0),
                "rosybrown" to ColorCalc(188, 143, 143),
                "royalblue" to ColorCalc(65, 105, 225),
                "saddlebrown" to ColorCalc(139, 69, 19),
                "salmon" to ColorCalc(250, 128, 114),
                "sandybrown" to ColorCalc(244, 164, 96),
                "seagreen" to ColorCalc(46, 139, 87),
                "seashell" to ColorCalc(255, 245, 238),
                "sienna" to ColorCalc(160, 82, 45),
                "silver" to ColorCalc(192, 192, 192),
                "skyblue" to ColorCalc(135, 206, 235),
                "slateblue" to ColorCalc(106, 90, 205),
                "slategray" to ColorCalc(112, 128, 144),
                "slategrey" to ColorCalc(112, 128, 144),
                "snow" to ColorCalc(255, 250, 250),
                "springgreen" to ColorCalc(0, 255, 127),
                "steelblue" to ColorCalc(70, 130, 180),
                "tan" to ColorCalc(210, 180, 140),
                "teal" to ColorCalc(0, 128, 128),
                "thistle" to ColorCalc(216, 191, 216),
                "tomato" to ColorCalc(255, 99, 71),
                "turquoise" to ColorCalc(64, 224, 208),
                "violet" to ColorCalc(238, 130, 238),
                "wheat" to ColorCalc(245, 222, 179),
                "white" to ColorCalc(255, 255, 255),
                "whitesmoke" to ColorCalc(245, 245, 245),
                "yellow" to ColorCalc(255, 255, 0),
                "yellowgreen" to ColorCalc(154, 205, 50)
            )
            }

            private fun ColorCalc(red:Int, green:Int, blue:Int,alpha:Int=1):Long{
                val argb: Int = -0x1000000 or (red shl 16) or (green shl 8) or blue
                return argb.toLong()

                //return Color.valueOf(r.toFloat(),g.toFloat(),b.toFloat()).toArgb().toLong()
            }
        }*/
    }
}
